home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / SDL / fd / SDL.fd
Text File  |  2002-10-27  |  5KB  |  154 lines

  1. ##base _SDLBase
  2. ##bias 30
  3. * The SDL interface
  4. ##public
  5. * general
  6. SDL_Init(flags)(d0)
  7. SDL_Quit()()
  8. SDL_InitSubSystem(flags)(d0)
  9. SDL_QuitSubSystem(flags)(d0)
  10. SDL_WasInit(flags)(d0)
  11. * rwops
  12. SDL_RWFromFile(file,mode)(a0/a1)
  13. SDL_RWFromFP(fp,autoclose)(a0/d0)
  14. SDL_RWFromMem(mem,size)(a0/d0)
  15. SDL_AllocRW()()
  16. SDL_FreeRW(area)(a0)
  17. * video
  18. SDL_LoadBMP_RW(src,freesrc)(a0/d0)
  19. SDL_DisplayFormat(surface)(a0)
  20. SDL_FreeSurface(surface)(a0)
  21. SDL_FillRect(dst,dstrect,color)(a0/a1/d0)
  22. SDL_UpperBlit(src,srcrect,dst,dstrect)(a0/d0/a1/d1)
  23. SDL_Flip(screen)(a0)
  24. SDL_UpdateRects(screen,numrects,rects)(a0/d0/a1)
  25. SDL_UpdateRect(screen,x,y,w,h)(a0/d0/d1/d2/d3)
  26. SDL_GetVideoInfo()()
  27. SDL_SetVideoMode(width,height,bpp,flags)(d0/d1/d2/d3)
  28. SDL_MapRGB(format,r,g,b)(a0/d0/d1/d2)
  29. SDL_MapRGBA(format,r,g,b,a)(a0/d0/d1/d2/d3)
  30. SDL_VideoDriverName(namebuf,maxlen)(a0/d0)
  31. SDL_GetVideoSurface()()
  32. SDL_VideoModeOK(width,height,bpp,flags)(d0/d1/d2/d3)
  33. SDL_ListModes(format,flags)(a0/d0)
  34. SDL_SetGamma(red,green,blue)(d0/d1/d2)
  35. SDL_SetGammaRamp(red,green,blue)(d0/d1/d2)
  36. SDL_GetGammaRamp(red,green,blue)(d0/d1/d2)
  37. SDL_SetColors(surface,colors,firstcolor,ncolors)(a0/a1/d0/d1)
  38. SDL_SetPalette(surface,flags,colors,firstcolor,ncolors)(a0/d0/a1/d1/d2)
  39. SDL_GetRGB(pixel,format,r,g,b)(d0/a0/d1/d2/d3)
  40. SDL_GetRGBA(pixel,format,r,g,b,a)(d0/a0/d1/d2/d3/d4)
  41. SDL_CreateRGBSurface(flags,width,height,depth,Rmask,Gmask,Bmask,Amask)(d0/d1/d2/d3/d4/d5/d6/d7)
  42. SDL_CreateRGBSurfaceFrom(pixels,width,height,depth,pitch,Rmask,Gmask,Bmask,Amask)(a0/d0/d1/d2/d3/d4/d5/d6/d7)
  43. SDL_LockSurface(surface)(a0)
  44. SDL_UnlockSurface(surface)(a0)
  45. SDL_SaveBMP_RW(surface,dst,freedst)(a0/a1/d0)
  46. SDL_SetColorKey(surface,flag,key)(a0/d0/d1)
  47. SDL_SetAlpha(surface,flag,alpha)(a0/d0/d1)
  48. SDL_SetClipRect(surface,rect)(a0/a1)
  49. SDL_GetClipRect(surface,rect)(a0/a1)
  50. SDL_ConvertSurface(src,fmt,flags)(a0/a1/d0)
  51. SDL_DisplayFormatAlpha(surface)(a0)
  52. * overlay
  53. SDL_CreateYUVOverlay(width,height,format,display)(d0/d1/d2/a0)
  54. SDL_LockYUVOverlay(overlay)(a0)
  55. SDL_UnlockYUVOverlay(overlay)(a0)
  56. SDL_DisplayYUVOverlay(overlay,dstrect)(a0/a1)
  57. SDL_FreeYUVOverlay(overlay)(a0)
  58. * GL
  59. SDL_GL_LoadLibrary(path)(a0)
  60. SDL_GL_GetProcAddress(proc)(a0)
  61. SDL_GL_SetAttribute(attr,value)(d0/d1)
  62. SDL_GL_GetAttribute(attr,value)(d0/a0)
  63. SDL_GL_SwapBuffers()()
  64. SDL_GL_UpdateRects(numrects,rects)(d0/a0)
  65. SDL_GL_Lock()()
  66. SDL_GL_Unlock()()
  67. * WM 
  68. SDL_WM_SetCaption(title,icon)(a0/a1)
  69. SDL_WM_GetCaption(title,icon)(a0/a1)
  70. SDL_WM_SetIcon(icon,mask)(a0/a1)
  71. SDL_WM_IconifyWindow()()
  72. SDL_WM_ToggleFullScreen(surface)(a0)
  73. SDL_WM_GrabInput(mode)(d0)
  74. * timer
  75. SDL_GetTicks()()
  76. SDL_Delay(ms)(d0)
  77. SDL_SetTimer(interval,callback)(d0/a0)
  78. SDL_AddTimer(interval,callback,param)(d0/a0/a1)
  79. SDL_RemoveTimer(t)(d0)
  80. * events
  81. SDL_PumpEvents()()
  82. SDL_PollEvent(event)(a0)
  83. SDL_WaitEvent(event)(a0)
  84. SDL_PeepEvents(events,numevents,action,mask)(a0/d0/d1/d2)
  85. SDL_PushEvent(event)(a0)
  86. SDL_SetEventFilter(filter)(d0)
  87. SDL_GetEventFilter()()
  88. SDL_EventState(type,state)(d0/d1)
  89. *joystick
  90. SDL_NumJoysticks()()
  91. SDL_JoystickName(device_index)(d0)
  92. SDL_JoystickOpen(device_index)(d0)
  93. SDL_JoystickOpened(device_index)(d0)
  94. SDL_JoystickIndex(joystick)(a0)
  95. SDL_JoystickNumAxes(joystick)(a0)
  96. SDL_JoystickNumBalls(joystick)(a0)
  97. SDL_JoystickNumHats(joystick)(a0)
  98. SDL_JoystickNumButtons(joystick)(a0)
  99. SDL_JoystickUpdate()()
  100. SDL_JoystickEventState(state)(d0)
  101. SDL_JoystickGetAxis(joystick,axis)(a0/d0)
  102. SDL_JoystickGetHat(joystick,hat)(a0/d0)
  103. SDL_JoystickGetBall(joystick,ball,dx,dy)(a0/d0/a1/a2)
  104. SDL_JoystickGetButton(joystick,button)(a0/d0)
  105. SDL_JoystickClose(joystick)(a0)
  106. *keyboard
  107. SDL_EnableUNICODE(enable)(d0)
  108. SDL_EnableKeyRepeat(delay,interval)(d0/d1)
  109. SDL_GetKeyState(numkeys)(a0)
  110. SDL_GetModState()()
  111. SDL_SetModState(modstate)(d0)
  112. SDL_GetKeyName(key)(d0)
  113. *mouse
  114. SDL_GetMouseState(x,y)(a0/a1)
  115. SDL_GetRelativeMouseState(x,y)(a0/a1)
  116. SDL_WarpMouse(x,y)(d0/d1)
  117. SDL_CreateCursor(data,mask,w,h,hot_x,hot_y)(a0/a1/d0/d1/d2/d3)
  118. SDL_SetCursor(cursor)(a0)
  119. SDL_GetCursor()()
  120. SDL_FreeCursor(cursor)(a0)
  121. SDL_ShowCursor(toggle)(d0)
  122. *app
  123. SDL_GetAppState()()
  124. *error
  125. SDL_SetErrorA(fmt,arglist)(a0/a1)
  126. SDL_GetError()()
  127. SDL_ClearError()()
  128. *audio
  129. SDL_AudioInit(driver_name)(a0)
  130. SDL_AudioQuit()()
  131. SDL_AudioDriverName(namebuf,maxlen)(a0/d0)
  132. SDL_OpenAudio(desired,obtained)(a0/a1)
  133. SDL_GetAudioStatus()()
  134. SDL_PauseAudio(pause_on)(d0)
  135. SDL_LoadWAV_RW(src,freesrc,spec,audio_buf,audio_len)(a0/d0/a1/a2/a3)
  136. SDL_FreeWAV(audio_buf)(a0)
  137. SDL_BuildAudioCVT(cvt,src_format,src_channels,src_rate,dst_format,dst_channels,dst_rate)(a0/d0/d1/d2/d3/d4/d5)
  138. SDL_ConvertAudio(cvt)(a0)
  139. SDL_MixAudio(dst,src,len,volume)(a0/a1/d0/d1)
  140. SDL_LockAudio()()
  141. SDL_UnlockAudio()()
  142. SDL_CloseAudio()()
  143. *thread
  144. SDL_CreateThread(fn,data)(a0/a1)
  145. SDL_ThreadID()()
  146. SDL_GetThreadID(thread)(a0)
  147. SDL_WaitThread(thread,status)(a0/a1)
  148. SDL_KillThread(thread)(a0)
  149. * version
  150. SDL_Linked_Version()()
  151. * extensions
  152. SDL_SoftStretch(src,srcrect,dest,dstrect)(a0/a1/a2/a3)
  153. ##end
  154.